package com.jydw.da.frame.controller;

import com.jydw.da.common.core.dataModel.common.vo.ResponseBean;
import com.jydw.da.frame.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/system/menu")
@RestController
public class SysMenuController {
    @Autowired
    SysMenuService sysMenuService;

    @GetMapping("/getTree")
    public ResponseBean<?> getTree() {
        return sysMenuService.getTree();
    }
}
